<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="novatar" uri="/novatar-tags"%><%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<novatar:head title="demo5.name" menuI18n="true"></novatar:head>
<novatar:easyui />
<link href="${styles}/sample5.css?v=${version}" rel="stylesheet" type="text/css">
<script type="text/javascript">
    window.contextPath = "${contextPath}";
</script>
<script type="text/javascript" src="${scripts}/sample5.js?v=${version}"></script>
</head>
<body id="bodyLayOut" class="easyui-layout">
    <div data-options="region:'west'" style="width:450px;">
        <table class="layoutTable" style="height: 100%;width:100%;">
            <tr><td style="width:100%;height:70px;">
                <div style="height:auto;">
                    <form method="post" id="picUploadForm" action="${contextPath}/sample/uploadPictureShow.pvt"
                    enctype="multipart/form-data" data-options="timeout:300000">
                        <fieldset style="margin:3px;height:auto;border:1px solid #b5b8c8">
                            <legend align="left"><span i18n="demo5.btn.addPic">图片文件上传</span></legend>
                            <input class="easyui-filebox" id="picFileInput" name="uploadFile" style="width:310px">
                            <a href="javascript:void(0)" class="easyui-linkbutton"
                                iconCls="icon-upfile" plain="true" onClick="onUploadPic()">
                                <span>文件上传</span>
                            </a>
                        </fieldset>
                    </form>
                </div>
            </td></tr>
            <tr><td style="width:100%;">
                <table id="picListGrid" style="height: 100%;">
                </table>
            </td></tr>
        </table>
    </div>
    <div data-options="region:'center'">
        <table class="layoutTable" style="height: 100%;width:100%;">
            <tr><td style="width:100%;height:70px;">
                 <div style="height:auto;">
                    <form method="post" id="adviceUploadForm" action="${contextPath}/sample/uploadAdvices.pvt"
                        enctype="multipart/form-data" data-options="timeout:300000">
                        <fieldset style="margin:3px;height:auto;border:1px solid #b5b8c8">
                            <legend align="left"><span i18n="demo5.btn.batchAddAdvices">建议意见上传</span></legend>
                            <a href="javascript:void(0)" class="easyui-linkbutton"
                                iconCls="icon-download" plain="true" onClick="onDownloadAdviceTpl()">
                                <span i18n="advice.batch.add.tplname">模板下载</span>
                            </a>
                            <input class="easyui-filebox" id="adviceFileInput" name="uploadFile" style="width:310px">
                            <a href="javascript:void(0)" class="easyui-linkbutton"
                                iconCls="icon-upfile" plain="true" onClick="onUploadAdvice()">
                                <span>文件数据导入</span>
                            </a>
                        </fieldset>
                    </form>
                </div>
            </td></tr>
            <tr><td style="width:100%;">
                <table id="adviceListGrid" style="height: 100%;">
                </table>
            </td></tr>
        </table>
    </div>
    <div class="hidden">
        <div id="picListGrid-toolbar">
            <a href="javascript:void(0)" class="easyui-linkbutton"
                iconCls="icon-search" plain="true" onClick="onSearchPicList()">
                <span i18n="search">查询</span>
            </a>
            <a href="javascript:void(0)" class="easyui-linkbutton"
                data-options="iconCls:'icon-remove',plain:true" onClick="onDelPicList()">
                <span i18n="delete">删除</span>
            </a>
        </div>
        <div id="adviceListGrid-toolbar">
            <a href="javascript:void(0)" class="easyui-linkbutton"
                iconCls="icon-search" plain="true" onClick="onSearchAdvice()">
                <span i18n="search">查询</span>
            </a>
            <a href="javascript:void(0)" class="easyui-linkbutton"
                data-options="iconCls:'icon-remove',plain:true" onClick="onDelAdvice()">
                <span i18n="delete">删除</span>
            </a>
            <a href="javascript:void(0)" class="easyui-linkbutton"
                data-options="iconCls:'icon-export',plain:true" onClick="onExportAdvice()">
                <span i18n="export">导出</span>
            </a>
        </div>
    </div>
</body>
</html>